home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / OWLINC.PAK / WING.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  2KB  |  67 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1995, 1997 by Borland International, All Rights Reserved
  4. //
  5. // $Revision:   10.7  $
  6. //
  7. // Definition of WinG dynamic library wrapper classes, TWinGDll & TWinG
  8. //----------------------------------------------------------------------------
  9. #if !defined(OWL_WING_H)
  10. #define OWL_WING_H
  11.  
  12. #if !defined(OWL_MODULE_H)
  13. # include <owl/module.h>
  14. #endif
  15. #if !defined (_INC_WING)
  16. # include <wing.h>
  17. #endif
  18.  
  19. #if defined(BI_NAMESPACE)
  20. namespace OWL {
  21. #endif
  22.  
  23. // Generic definitions/compiler options (eg. alignment) preceeding the 
  24. // definition of classes
  25. #include <services/preclass.h>
  26.  
  27. //
  28. // class TWinGDll
  29. // ~~~~~ ~~~~~~~~
  30. // Wrapper for the WinG dll itself
  31. //
  32. class _OWLCLASS TWinGDll {
  33.   public:
  34.     static HDC      CreateDC();
  35.     static BOOL     RecommendDIBFormat(BITMAPINFO*);
  36.     static HBITMAP  CreateBitmap(HDC, BITMAPINFO const*, void**);
  37.     static void*    GetDIBPointer(HBITMAP, BITMAPINFO*);
  38.     static uint     GetDIBColorTable(HDC, uint, uint, RGBQUAD*);
  39.     static uint     SetDIBColorTable(HDC, uint, uint, RGBQUAD const*);
  40.     static HPALETTE CreateHalftonePalette();
  41.     static HBRUSH   CreateHalfToneBrush(HDC, COLORREF, WING_DITHER_TYPE);
  42.     static BOOL     BitBlt(HDC, int, int, int, int, HDC, int, int);
  43.     static BOOL     StretchBlt(HDC, int, int, int, int, HDC, int, int, int, int);
  44.  
  45.     static TModule& WinGModule();
  46.     static bool     IsAvailable();
  47. };
  48.  
  49. //
  50. //
  51. //
  52. class _OWLCLASS TWinG {
  53.   public:
  54.     static bool       IsAvailable();
  55.     static TWinGDll*  Dll();
  56. };
  57.  
  58. // Generic definitions/compiler options (eg. alignment) following the 
  59. // definition of classes
  60. #include <services/posclass.h>
  61.  
  62. #if defined(BI_NAMESPACE)
  63. } // namespace OWL
  64. #endif
  65.  
  66. #endif // OWL_WING_H
  67.